package org.davidtrevien.com.imput.omi.imputomi;

import javax.swing.JPanel;

import layout.TableLayout;

import org.davidtrevien.com.imput.omi.callback.NavigationCallback;
import org.davidtrevien.com.imput.omi.panels.center.CenterCtrl;
import org.davidtrevien.com.imput.omi.panels.top.TopCtrl;

public class ImputOmiView
	extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5603794641929703746L;

	protected TopCtrl topCtrl;
	
	protected CenterCtrl centerCtrl;
	
	public ImputOmiView(NavigationCallback callback) {
		initComponent(callback);
	}

	private void initComponent(NavigationCallback callback) {
		double size[][] = new double[][] {
				{TableLayout.FILL},
				{50,TableLayout.FILL}
		};
		TableLayout layout = new TableLayout(size);
		
		setLayout(layout);
		
		this.topCtrl = new TopCtrl(callback);
		this.centerCtrl = new CenterCtrl();
		
		add(this.topCtrl.getView(), "0,0");
		add(this.centerCtrl.getView(), "0,1");
	}
	
	
}
